//
//  HMSportTracking.m
//  LetsGo
//
//  Created by 段立峰 on 2016/11/9.
//  Copyright © 2016年 段立峰. All rights reserved.
//

#import "HMSportTracking.h"

@implementation HMSportTracking

-(instancetype)initWithType:(HMSportType)type{
    
    self = [super init];
    if (self) {
        _sportType = type;
    }
    return self;
    
}
-(UIImage *)sportImage{
    
    
    UIImage *image;
    switch (_sportType) {
        case HMSportTypeRun:
            image = [UIImage imageNamed:@"map_annotation_run"];
            break;
        case HMSportTypeWalk:
            image = [UIImage imageNamed:@"map_annotation_walk"];
            break;
        case HMSportTypeBike:
            image = [UIImage imageNamed:@"map_annotation_bike"];
            break;
    }
    return image;
    
}
@end
